export function fetchApiStatusOptions(data) {
  return [
    { key: 0, display_name: '草稿' },
    { key: 1, display_name: '已完成' }
  ]
}

export function fetchApiStatusKeyValue(options) {
  return options.reduce((acc, cur) => {
    acc[cur.key] = cur.display_name
    return acc
  }, {})
}

export function fetchApiStatusType() {
  return {
    0: 'info',
    1: 'success'
  }
}
